﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Student:School
    {
        private string major;
        private string grade;

        public string Major
        {
            get { return this.major; }
            set { this.major = value; }
        }
        public string Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }
        public Student(string name,int id ,char gender,int idCard,int phone)
            :base(name,id,gender,idCard,phone)
        { 
             
        }
        
        
        public void TTT()
        {
            Console.WriteLine("学生名：{0},学生编号：{1}，性别:{2}，身份证号：{3}，电话号码:{4}，专业:{5}，年级:{6}",
                name,id,gender,idCard,phone,major, grade);
        }
    }
}
